$(document).ready(function() {

    //切换按钮
    $('.qhBtn ul li').click(function(event) {
        $(this).addClass('on').siblings('li').removeClass('on');
    });

    //全局加载动画配置
    $.ajaxSetup({
        beforeSend:function(){
            $('.page_ani').show();
            $('.page_box').hide();
        },
        success:function(){
            setTimeout("$('.page_box').show()",170);
            setTimeout("$('.page_ani').hide();",150);
        }
    });
    $('.load_page .page_box').load('page01.html?v=1.8');

    //分页
    $('.page_box,.pageBox').on('click', '.pageObj li', function(event) {
        var li_num = $(this).html();
        $('.li_num').html(li_num);
    });
    $('.page_box,.pageBox').on('click', '.pageMenu li', function(event) {
        var li_num2 = $('.pageObj li.active').html();
        $('.li_num').html(li_num2);
    });

    //tr鼠标悬浮颜色改变
    $('.page_box,.pageBox,.global_table').on('mouseover', 'tbody tr', function(event) {
        $(this).addClass('tr_on');
    });
    $('.page_box,.pageBox,.global_table').on('mouseout', 'tbody tr', function(event) {
        $(this).removeClass('tr_on');
    });

});

    //加载页
    function qh(numberIndex){
        $('.load_page .page_box').load('page0'+numberIndex+'.'+'html?v=1.8');
    }

